Skip to content

Replaced missing deprecated "np.mat()" with "np.asmatrix()"#67

Open
feirog wants to merge 1 commit into
mims-harvard:masterfrom
feirog:master
Open

Replaced missing deprecated "np.mat()" with "np.asmatrix()"#67
feirog wants to merge 1 commit into
mims-harvard:masterfrom
feirog:master

Conversation

@feirog

@feirog feirog commented Jan 16, 2026

Copy link
Copy Markdown

I noticed several 'np.mat()' instances were still present in the package and limited fix #66 . As such, issue #65 was still present.

With this update, I've ensured all instances of 'np.mat()' have been replaced to 'np.asmatrix()'. To do so, I ran the following shell command:

find * -type f -exec sed -i 's/np.mat(/np.asmatrix(/g' {} ;

This should fix several broken functions. Resolves issue #65 , building on #66 .

I noticed several 'np.mat()' instances were still present in the package and limited fix mims-harvard#66 . As such, issue mims-harvard#65 was still present.

With this update, I've ensured all instances of 'np.mat()' have been replaced to 'np.asmatrix()'. To do so, I've the following shell command:

find * -type f -exec sed -i 's/np.mat(/np.asmatrix(/g' {} \;

This should fix several broken functions, hopefully making Nimfa compatible with numpy v.2.0.0+. Resolves issue mims-harvard#65 , building on mims-harvard#66 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant